<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page pageEncoding="UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<script type="text/javascript">
    $(document).ready(function() {
        $("tr:odd").addClass("odd");
        $("tr:even").addClass("even");
    });
</script>
<s:if test="paginater.pageItems.size > 0">
    <div class="headline clearfix">
        <span class="result_title"><s:text name="paging.banner.query.result"/></span>
        <span class="pagebanner">
            <s:text name="paging.banner.some_items_found"/>
            <s:if test="paginater.currentPage == paginater.totalPage">
                ${paginater.totalCount}
            </s:if>
            <s:else>
                ${paginater.pageSize*paginater.currentPage}
            </s:else>
            <s:text name="paging.banner.some_items_found.last"/>
        </span>
        <s:if test="paginater.pageItems.size > 1">
            <span class="pagelinks">
                 <s:if test="paginater.currentPage > 1">
                     [<a accesskey="1" class="paginater"><s:text name="paging.banner.first"/></a>
                     <a accesskey="${paginater.currentPage-1}" class="paginater"><s:text name="paging.banner.prev"/></a>]
                 </s:if>
                <s:else>
                    [<a href="javascript:"><s:text name="paging.banner.first"/></a>
                    <a href="javascript:"><s:text name="paging.banner.prev"/></a>]
                </s:else>
                <s:iterator value="paginater.pageItems">
                    <s:if test="paginater.currentPage==value">
                        <strong>${paginater.currentPage}</strong>
                    </s:if>
                    <s:elseif test="value!=null">
                        <a accesskey="${value}" title="Go to page ${value}" class="paginater">${value}</a>
                    </s:elseif>
                    <s:else>
                        <span>&hellip;</span>
                    </s:else>
                </s:iterator>
                <s:if test="paginater.currentPage != paginater.totalPage">
                    [<a accesskey="${paginater.currentPage+1}" class="paginater"><s:text name="paging.banner.next"/></a>
                    <a accesskey="${paginater.totalPage}" class="paginater"><s:text name="paging.banner.last"/></a>]
                </s:if>
                <s:else>
                    [<a href="javascript:"><s:text name="paging.banner.next"/></a>
                    <a href="javascript:"><s:text name="paging.banner.last"/></a>]
                </s:else>
            </span>
        </s:if>
    </div>
</s:if>